package common

const (
	OrderNameAsc  = 1
	OrderNameDesc = 2
	OrderTimeAsc  = 3
	OrderTimeDesc = 4
	OrderSizeAsc  = 5
	OrderSizeDesc = 6
)

var FileOrderMap = map[int]string{
	OrderNameAsc:  "file_name asc",
	OrderNameDesc: "file_name desc",
	OrderTimeAsc:  "create_time",
	OrderTimeDesc: "create_time desc",
	OrderSizeAsc:  "file_size asc",
	OrderSizeDesc: "file_size desc",
}

var FolderOrderMap = map[int]string{
	OrderNameAsc:  "folder_name asc",
	OrderNameDesc: "folder_name desc",
	OrderTimeAsc:  "create_time",
	OrderTimeDesc: "create_time desc",
}

const (
	ResourceStatusNormal  = 1 // 正常
	ResourceStatusRecycle = 2 // 回收站
	ResourceStatusDelete  = 3 // 删除
)

const (
	ResourceNormalToRecycle = 1 // 放入回收站
	ResourceRecycleToNormal = 2 // 从回收站恢复
	ResourceRecycleToDelete = 3 // 从回收站删除
)
